package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Arrays;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;

@SpringBootApplication
//@ServletComponentScan(basePackages={"cn.sweetz.exercise.springbootdemo.common.filter"})
@ServletComponentScan
@EnableTransactionManagement
@EnableCaching
public class ReggieTakeOutApplication {


    public static void main(String[] args) {
        SpringApplication.run(ReggieTakeOutApplication.class, args);
    }

//    public static void main(String[] args) {
//        int[] arr = {2, 10,3, 20,3, 5,4,7,9,8};
//
//        for (int i =0 ;i < arr.length; i++){
//            for (int j =1 ;j < arr.length -i -1;j++){
//                if (arr[j] > arr[j+1]){
//                    int temp = arr[j];
//                    arr[j] = arr[j+1];
//                    arr[j+1] = temp;
////                    break;
//                }
//            }
//        }
//        System.out.println(Arrays.toString(arr));
//    }
}
